systemd: How to check scheduled time of a delayed shutdown?

您所在的位置:网站首页 scheduled time systemd: How to check scheduled time of a delayed shutdown?

systemd: How to check scheduled time of a delayed shutdown?

2023-03-30 10:24| 来源: 网络整理| 查看: 265

I like to use shutdown -h TIME/+DELAY sometimes. However, since the switch to systemd (on Ubuntu), things seem to have changed quite a bit.

Apart from the fact that a previous shutdown command no longer prevents running a new one, I can't figure out how to check for the planned shutdown time of a current shutdown process.

I used to just run ps aux | grep shutdown to see the planned shutdown time.

Now with systemd it just shows something like this:

root 5863 0.0 0.0 13300 1988 ? Ss 09:04 0:00 /lib/systemd/systemd-shutdownd

How can I check the scheduled shutdown time of such a process?

I tried shutdown -k, but instead of only writing a wall message, it seems to also change the scheduled shutdown time to now+1 minute.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3